import CONSTANT from '@/common/constants.js';
import http from '@/common/http.js';

export default {
  name: 'noticeDetails',
  components: {},
  data () {
    return {
      siteId: '',
      // 通知id
      id: '',
      content: []
    }
  },
  mounted () {
    var _this = this
    _this.siteId = window.sessionStorage.getItem('siteId')
    _this.id = window.sessionStorage.getItem('noticeId')
    http.get(CONSTANT.NOTICEVIEW + '?siteId=' + _this.siteId + '&id=' + _this.id, {}, (res) => {
      console.log(res)
      _this.content = res
    })
    // http.get(CONSTANT.NOTICEVIEW, {
    //   siteId: _this.siteId,
    //   Id: _this.id
    // }, (res) => {
    //   console.log(res)
    //   _this.content = res
    // })
  },
  methods: {
    comeBack () {
      window.history.go(-1)
    }
  }
}
